package com.lbd.project.dao;

import com.lbd.project.bean.TargetInfo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * Created by Yuanbo on 2016/9/29.
 */
@Component
public interface TargetRepository extends PagingAndSortingRepository<TargetInfo, Serializable>, JpaSpecificationExecutor<TargetInfo> {
    /**
     * 根据id查询标的信息
     *
     * @param id
     * @return
     */
    public TargetInfo findById(String id);
}
